package Couistot;
import java.io.Serializable;
import java.util.Date;

@SuppressWarnings("serial")
public class Reservation implements Serializable, Couistot {
	private int id;
	private int service;
	private Date date;
	
	public Reservation(){
		id=0;
		service=0;
		date=null;
	}
	
	public Reservation(int rId, int rService, Date rDate){
		id=rId;
		service=rService;
		date=rDate;
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getService() {
		return service;
	}

	public void setService(int service) {
		this.service = service;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String toString2() {  // Commande+reservation
		return String.valueOf(this.id);
	}  
}
